<?exit?>
<!--{if empty($_SGLOBAL['inajax'])}-->
<!--{template header}-->
<!--{/if}-->
<script>
var lastSecCode = '';
function checkSeccode() {
	var seccodeVerify = $('seccode').value;
	if(seccodeVerify == lastSecCode) {
		return;
	} else {
		lastSecCode = seccodeVerify;
	}
	ajaxresponse('checkseccode', 'op=checkseccode&seccode=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(seccodeVerify) : seccodeVerify));
}
function ajaxresponse(objname, data) {
	var x = new Ajax('XML', objname);
	x.get('{S_URL_ALL}/do.php?action=register&' + data, function(s){
		var obj = $(objname);
		if(trim(s) == 'succeed') {
			obj.style.display = '';
			obj.innerHTML = '<img src="images/base/check_right.gif" width="13" height="13">';
			obj.className = "warning";
		} else {
			warning(obj, s);
		}
	});
}
function warning(obj, msg) {
	if((ton = obj.id.substr(5, obj.id.length)) != 'password2') {
		$(ton).select();
	}
	obj.style.display = '';
	obj.innerHTML = '<img src="images/base/check_error.gif" width="13" height="13"> &nbsp; ' + msg;
	obj.className = "warning";
}
</script>
<h2><a href="{S_URL}/"><img src="{S_URL}/templates/$_SCONFIG[template]/images/logo.gif" alt="$_SCONFIG[sitename]" /></a></h2>
				<form class="ad_header" id="searchform" action="{S_URL}/batch.search.php" method="post">
				<label>搜索：</label>
				<input type="text" id="searchkey" name="searchkey" size="23" class="input_tx"/>
				<input type="hidden" value="news" name="type">
				<input type="submit" value="搜索" id="submit" class="input_search" name="searchbtn"/>
				<input type="hidden" name="subjectsearch" value="true" />
				</form>
</div>
</div><!--header end-->

<div id="pagebody">
<div id="pagebody_extbg">
	<div id="nav">
		<ul class="main_nav">
			<!--{if empty($_SCONFIG['defaultchannel'])}-->
			<li><a href="{S_URL}/index.php"><span>首页</span></a></li>
			<!--{/if}-->
			<!--{loop $channels['menus'] $key $value}-->
			<li><a href="$value[url]"><span>$value[name]</span></a></li>
			<!--{/loop}-->
		</ul>
	</div>
	
	<div class="column">	
	<div id="login">
		<h1>用户登录</h1>
		<div class="login_content">
			<div class="box_l">
			<form id="loginform" method="post" action="{S_URL}/batch.login.php?action=login">
			<table>
				<!--{if empty($_SCONFIG['noseccode'])}-->
				<th width="50">验证码</th>
					<td>
						<script>seccode();</script> 
						<p style="padding-bottom:6px;">
						请输入上面的4位字母或数字，看不清可<a style="color:#2C629E;" href="javascript:updateseccode()">更换一张</a></p>
						<input type="text" class="input_tx" size="10" id="seccode" name="seccode" value="" onblur="checkSeccode()"/>
						<span id="checkseccode" class="warning">&nbsp;</span>
					</td>
				<!--{/if}-->
				<tr>
					<th>用户名</th>
					<td><input size="30" type="text" class="input_tx" value=""  name="username"/></td>
				</tr>
				<tr>
					<th>密码</th>
					<td><input size="30" type="password" class="input_tx" value="" name="password"/></td>
				</tr>
				<tr>
					<th>有效期</th>
					<td>
					<select class="input_select" name="cookietime" id="cookietime">
						<option value="0">浏览器进程</option>
						<option value="315360000">永久</option>
						<option value="2592000">一个月</option>
						<option value="86400">一天</option>
						<option value="3600">一小时</option>
					</select>
					</td>
				</tr>
				<tr>
					<th></th>
					<td>
						<input class="input_login" type="submit" value="" name="loginsubmit"/>
						<input type="hidden" name="loginsubmit" value="true" />
						<input type="hidden" name="refer" value="$refer" />
					</td>
				</tr>
			</table>
			</form>
			</div>
			<div class="box_r">
				<h2>提示</h2>
				<ul>
					<li>游客可以<a href="{S_URL}/do.php?action=register">点击此处</a>注册成为本站会员！</li>
					<li>如果您忘记了帐号密码，您可以<a target="_blank" href="{S_URL}/do.php?action=lostpasswd">申请找回密码</a>。</li>
					</li>
				</ul>
			</div>
		</div>
	</div><!--register end-->
	</div><!--column end-->
</div>
</div><!--pagebody end-->

<!--{template footer}-->
